/**
 * 
 */
package com.orcwar.engine;

import java.util.List;

/**
 * @author Callil
 *
 */
public class OWPlayer {

	/** The id. */
	private int id;
	
	/** The players units. */
	private List<OWUnit> units;

	/**
	 * Whether this player contains the unit.
	 * @param unit the unit
	 * @return true if the unit belongs to this player
	 */
	public boolean containsUnit(OWUnit unit) {
		return units.contains(unit);
	}
	
	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @return the units
	 */
	public List<OWUnit> getUnits() {
		return units;
	}

	/**
	 * @param units the units to set
	 */
	public void setUnits(List<OWUnit> units) {
		this.units = units;
	}
}
